USE [DeltaFlex]
GO
IF(OBJECT_ID('dbo.MAQUINA_CARTONER')IS NOT NULL)
	DROP TABLE dbo.MAQUINA_CARTONER
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE dbo.MAQUINA_CARTONER(
	IDMAQUINACARTONER int NOT NULL,
	IDCLIENTIMPRESOR int NOT NULL,
	NOMMAQUINA nvarchar(50) NOT NULL,
	DEFLACCIOMAQUINA nvarchar(100) NOT NULL,
	CALIBREMAQUINA nvarchar(10) NOT NULL,
	URLFITXAMAQUINA nvarchar(100) NOT NULL
 CONSTRAINT PK_MaquinaCartoner PRIMARY KEY CLUSTERED 
(
	IDMAQUINACARTONER ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

IF (OBJECT_ID('SEQ_MAQUINACARTONER')IS NOT NULL)
	DROP SEQUENCE SEQ_MAQUINACARTONER
GO
CREATE SEQUENCE SEQ_MAQUINACARTONER
	START WITH 100
    INCREMENT BY 1
    MINVALUE 1
    MAXVALUE 9223372036854775807;
GO

